package com.kmist.xiakexing.utils;

import java.util.List;

public abstract class GObject {
    protected int id;
    protected String pname;
    protected String name;
    protected int age;
    protected String gender;
    protected int per;
    protected String desc;
    protected int combat_exp;
    protected int str;
    protected int dex;
    protected int shen_type;
    protected int no_get;

    public GObject(int id, String pname, String name, int age, String gender, int per, String desc, int combat_exp, int str, int dex, int shen_type, int no_get) {
        this.id = id;
        this.pname = pname;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.per = per;
        this.desc = desc;
        this.combat_exp = combat_exp;
        this.str = str;
        this.dex = dex;
        this.shen_type = shen_type;
        this.no_get = no_get;
    }

    public GObject() {
    }

    public abstract boolean isCharacter();  //是否是生物
    public abstract boolean isPlayer();     //是否是玩家
    public abstract boolean isObject();     //是否是物品

    /* 是否是结拜兄弟 */
    public boolean isBrother(GObject obj){
        int id = 0;
        if(obj.isPlayer() || obj.isObject() ){
            id = obj.getId();
        }else
            return false;
        //TODO
        return false;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getPer() {
        return per;
    }

    public void setPer(int per) {
        this.per = per;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getCombat_exp() {
        return combat_exp;
    }

    public void setCombat_exp(int combat_exp) {
        this.combat_exp = combat_exp;
    }

    public int getStr() {
        return str;
    }

    public void setStr(int str) {
        this.str = str;
    }

    public int getDex() {
        return dex;
    }

    public void setDex(int dex) {
        this.dex = dex;
    }

    public int getShen_type() {
        return shen_type;
    }

    public void setShen_type(int shen_type) {
        this.shen_type = shen_type;
    }

    public int getNo_get() {
        return no_get;
    }

    public void setNo_get(int no_get) {
        this.no_get = no_get;
    }
}
